Percentage calculator: how it works and how to use it