work towards a best rate calculator