hour_cap needs to be explicitly cast to int