Update Calculation For Doc