final amount should be float and not int