math.floor function used for minutes calculation