Leasing vs buying

I financed my current car. I am not sure what residual 3 years later would be and how much I would have paid so far if leasing, especially since I should probably do an 18,000 mile per year lease. When I look up my trade value and consider my payments over 3 years, I am not sure there would be any advantage to leasing over buying. My current monthly payments would equal out to about 13,000 in 3 years. Considering the amount of miles I would need for a lease, without specific facts, it seems like what I will have paid and considering my trade value, might end up being less than what I would have paid if I leased it. Am I thinking wrong?