Added recalculate method for doubles