I am trying to determine the duration of elapsed time minus any interruptions. The method below seems inefficient and silly is there a better method?
The user specifies an end_time and a start_time are and records any interruptions as an integer representing minutes.
def duration
((end_time - start_time).seconds - interrupt.minutes) / 60
end