Refactor if in estimated hours for chart