take atm limits into account