Membership plugin. Need to pro rata the upgrade price

We have quite expensive subscriptions on our site (e.g. $250 for a yearly membership) and therefore when someone wants to upgrade half-way through a year we need to take the remainder of their existing membership e.g. $125 and allow that to go towards the cost of the upgrade. Is this possible?