Membership upgrade from one paid tier to next highest with price adjustment

Current members can upgrade their membership; however, there does not seem to be a way to subtract the amount they have already paid.
So what I need to know is if membership A costs $50 and membership B costs $75 a member should be able to upgrade from A to B and only have to pay the upgrade cost of $25.. is this possible?