how to calculate shares percentage