Cost Revenue Function