simple refactoring to make a bit more readable/simple
Merge pull request #384 from YaleSTC/340_simplify_duration_allowed_reservations

340 simplify duration allowed reservations