How to find upper and lower bounds