Equation to determine remaining hours