do not calculate shares if total amount is 0