int getTotalMinutes(int totalMinutes, DateTime enterTime) { var dateNow = DateTime.now(); var diff = dateNow.difference(enterTime).inMinutes; return diff + totalMinutes; }