Cost and pricing

What software really costs to build and run, with ranges per kind of product, worked examples and the figures' sources, dated.