Update extra-task-1.cpp

Made to_float_hours