The FAQ page on upgrading to a family account has various scenarios on how premium subscriptions are applied.
https://support.lastpass.com/s/document-item?bundleId=lastpass&topicId=LastPass/FAQ_Premium_to_Families_Prorate.html