Add m/r function for job duration