at least one of the values in the calculation must be a var.

eg
Code:
 capture=500
 calc1 =  capture * 1000 ';;; My own values just for testing first
 pulse_width = div32 100 ';;; this results is correct
ps when you post code use the code tags , the forum will mess things up format wise without them