fix percentage calc