cost graph works now and shows max cost limit