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

fixed calc method