formula for percent problems