Fairshare cost computation rewrite