Advertising cost, how to calculate it?

What is the value of advertising? The cost is calculated mainly based on visibility, a newspaper calculates it based on the circulation, television based on