Formula @ Parameters

setting up formula and parameters for calculations