This is what makes software interesting. It theoretically works forever and has zero marginal production cost, but it's durability is driven by business requirements and hardware and OS changes. Some software might have a 20 year life. Some might only be 6 months.
A house is way more durable. My house is older than all software and I expect it to outlive most software written (either today or ever). Except voyager perhaps!