Improvement of the system, now it has a class to return minutes or hours