Formula For Piecewise Function