Addd Calculation Function