# system.kanoa.schedule.calcEventDuration(assetId, startDate, qty, itemInfo)

This function will calculate the expected duration it will take to complete a production run for a given item

---
### Parameters
**assetId** `Integer`: Id of asset<br />
**startDate** `DateTime`: Start date of when to schedule<br />
**qty** `Float`: Quantity to schedule<br />
**itemInfo** `Dictionary`: Information about the item to be scheduled<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - infeedUnits</td><td>String</td><td></td></tr>	
 	<tr><td> - itemPeriodName</td><td>String</td><td></td></tr>	
 	<tr><td> - packageCount</td><td>Float</td><td></td></tr>	
 	<tr><td> - scheduleRate</td><td>Float</td><td></td></tr>	
	</tbody>
</table>

---
### Returns
**durationMins** `Integer` Calculated duration in minutes<br />
**msg** `String` None if success<br />
**durationCalcLogs** `List of Strings` Details on how the duration was calculated<br />

---
### Example
```python
assetId = 901
startDate = system.date.now()
qty = 100.0
itemInfo = {
	'infeedUnits': 'ea',
	'itemPeriodName': 'Minute',
	'packageCount': 1.0,
	'scheduleRate': 485.5
}
durationMins, msg, durationCalcLogs = system.kanoa.schedule.calcEventDuration(assetId, startDate, qty, itemInfo)
```
