more robust hours calc