cash proceeds formula