Moved calculations of maintenance times into Craft object.