Created an equation to calculate total available hours