Solving fractions of amounts