amount using double not int, else 3rd sample fail