Production time calculation