fixed calc method
Merge pull request #33 from novikam/master

fixed calc method