COOPR-581: Implement node hours REST API

Math.min(deleteTaskTime, endDate)