Made EXTRA_HOURS into a function parameter