cost calculation from cpp. plot Full-GR and No-GR on the chart.