How to make calculation when options are closer