Local vs API Break-even Calculator

How many months until self-hosting pays back vs using API? Compare Mac Studio, RTX 4090/5090, and Hyperspace pods at your usage level.