Abstract
While developing an app the author came across the fact that while calculating time durations, certain variables are often overlooked which can result in errors. This paper provides an algorithm that considers the absolute values of the time slots and after a discrete set of steps results in the accurate time durations. The scope of this research is not limited to hours and minutes but, can be applied to seconds and milliseconds as well.