30c: depreciating assets that outlive their expected lifespan?

You are a restaurant and you have paid $11,000 for a coffeemaker. You estimate that the machine will either last 5 years or make 10,000 cups of coffee. Salvage value is 1,000

What happens if you use the machine for 6 years and/or it produces 20,000 cups of coffee before breaking down? How is that reflected in the financial statements (especially with depreciation)?

After you reach salvage value, you stop depreciating the asset, no matter how long it lasts.