Formula For Calculating Shadow Cost