my prog has a function that every adjustable set period (with magnitude of mins) it calculates efficiency of the process based on throughput since the process started.

I have currently:

currentProductThrough / TargetForHour

I want to refine this so that efficiency will be correct as with the above 100% would (even in ideal situ) only be reached when the hour is up.

therefore I thought something like:

currentProductThrough / (TargetForHour/60)

if this is correct, to allow for the adjustable testing period then would need to be something like:

if the period equals (1min * period Coefficiant),

currentProductThrough / (TargetForHour/(60*periodCoefficiant)

if anyone understands what I'm on about, please let me know if Im on the right track or not

Ta