How To Calculate Expected Cost