Fixes #153 Replaces non-standard NumberOfIntervals

NumbersOfIntervals = 5000
StopTime = 40
Interval = 40/5000 = 0.008