Parse plan code to int on subscription upgrade