The only time I've calculated a contract cheaper is when you compare to the exact length of the contract. If you keep a phone just one month more or less than the contract term, it's usually more expensive to have the contract. As we see here, if you lose your phone it's a lot more more expensive.
It's the time period (lock in) that makes contracts unacceptable for me, not the price.