Car rental commonly involves a fee per time period (day, week) and a fee per mile, possibly with some number of included miles. This combination of fees can often be represented using a linear equation.
The equations for different cars or rental companies can be evaluated for the range of driving possibilities you may have. The result of that evaluation can help you determine the least expensive option(s) for the driving you intend to do.