fixed formula to calculate shares purchased