Fixed calculation for non Zero minimum.
Merge pull request #5 from ChimpStudios/master

Fixed calculation for non Zero minimum.