add calculations for total hours, resolves #70