Hours Worked engine for rails