If I am understanding you correctly, take the total run revenue and divide it by the total mileage to do the run. Then compare that to your CPM to determine its profitability.
In your case, if you ran 813 miles and recieved 594.66, then your revenue per mile is roughly .73 cent.