I have an order that I want to adjust the price for and apply a custom discount. I can change the total easy enough with the following:
$subscription->calc