Helper method for deadline in minutes. Fix #1131