update formula calculate price