Jack does the math:
Just remember that cost and price are not the same. An iPhone 11 Pro does not cost $999. That’s the price. Once you sell it a year or two later, the amount you receive for the sale is deducted from the original price tag, and that gives you the total cost (minus case, AppleCare, apps, etc.).
There’s a reason why Apple makes good hardware. iPhones last longer than Android smartphones.