Fixed incorrect calculations
Merge pull request #2 from raidixlab/recover

Fixed incorrect calculations