Cost calculation changes

Added $ to the cost. Also fixed up some “bad” code
sdgv

dbxcbv