How to create this Calculation formula