Javascript algorithm (if possible) that presents the estimate with the best cost-benefit of a parking options
I am developing a management system reservations for a vehicle parking lot. I need an algorithm in javascript (if possible) that presents the estimate with the best cost-benefit. I considered the following hypothetical situations as examples. From N options, a combination of them with the best cost/benefit can be chosen.