Implemented #53

It matches the equal or closest upper ratio available.