Back in the day, I learned to calculate the Weighted Average Cost of Capital (WACC) to aid a decision like this.
Formula:
Primer: