Python Word Prob Issue
<p>Here's the word problem: It takes exactly 2 minutes and 7 seconds to produce an item. Unfortunately, after 143 items are produced, the fabricator must cool off for 5 minutes and 13 seconds before it can continue. Write a program that will calculate the amount of time required to manufacture a given number of items.</p>

<p>The test number is 1340 items.</p>

<pre><code>numItems = 1340
produceitem = 2 * 60 + 7  #2 minutes and 7 seconds
cooldown = 5 * 60 + 13 #5 minutes and 13 seconds
items_before_delay = 143
productiontime = 0

if numItems &lt;= 143:
    productiontime = produceitem * numItems
if numItems &gt; 143:
    productiontime = (produceitems * numItems) - (numItems / items_before_delay * cooldown) 
print str(productiontime) + "seconds"
</code></pre>

<p>The output for the test number is supposed to be 172997 seconds but my program outputs it as 167363 seconds.</p>

<p>Can anyone let me know what I can do to improve this?</p>
