6.2 Calculation of service prices

Every midnight in the Sweden version, the new day's office service prices are computed. Prices vary from city to city. 
First, a baseline price for the city is determined, based on the ratio of (factories + shops) to total buildings in the city. Then the average number of hours billed per service is calculated, and the price of each service is based on its deviation from that average. 
In computing the baseline city price, factories and shops are worth 70-90 points, while offices are worth 90-110 points.
When comparing factory/shop points and office points, a percentage is calculated, and every percent results in a 10 iKr change to service prices. If there are more factory/shop points, service prices rise, and if there are more office points, they fall. 
After this calculation, every service price can be changed between +/- 25% depending on how many hours of each service has been charged. 
The more heavily a service is billed one day, the lower its price will be the next. Conversely, the less that service is billed, the higher its price will go. Top prices go to those services which were not billed at all the previous day.
The example below illustrates how the service pricing system functions. 
<TABLE cellpadding="5" cellspacing="1" width="350">
<TR>
<TD class="text8" bgcolor="#FCFFE6">
In the city Helsingborg there is 170 factories, 60 shops and 90 offices.
Last 24-hour period the following was charged: 60 hours of Web design, 70 hours of advertising, 90 hours of Blood sampling, and 60 hours of Dressing.
In total, there is 4 different offices in the game, meaning there is 4 different service types.<BR />
<FONT color="#330099">How many points are the factories and shops worth in Helsingborg?</FONT><BR />
<U>One factory or shop is worth 70-90 points, and in this case, we calculate using 80 points per factory or shop.<BR>
170 factories x 80 points + 60 shops x 80 points = 13600 points + 4800 points = 18400 points</U><BR />
<FONT color="#330099">How many points are the offices worth in Helsingborg?</FONT><BR>
<U>Each office is worth 90-110. In this case, we calculate using 90 points per office.<BR>
90 offices x 90 points = 8100 points</U><BR />
<FONT color="#330099">What is the service price calculation percentage?</FONT><BR>
<U>18400 factory and shop points / (18400 factory and shop points + 8100 office points) = 69%</U><BR />
<FONT color="#330099">What then will the base price of services be?</FONT><BR>
<U>69 x 10 iKr = 690 iKr/hour</U><BR />
<FONT color="#330099">How much will the prices change depending on how many hours of each service has been charged?</FONT><BR>
<U>0.25 x 690 = 173 iKr</U><BR />
<FONT color="#330099">How many hours will be charged?</FONT><BR>
<U>60 hours + 70 hours + 90 hours + 60 hours = 280 hours</U><BR />
<FONT color="#330099">What will the average amount of hours charged be?</FONT><BR>
<U>280 hours / 4 offices = 70 hours</U><BR />
<FONT color="#330099">What will the price of Web design be?</FONT><BR>
<U>(70 - 60) / 70 = 0.142 x 173 = 25 + 690 = 715 iKr</U><BR />
<FONT color="#330099">What will the price of Advertising be?</FONT><BR>
<U>(70 - 70) / 70 = 0 x 173 = 0 + 690 = 690 iKr</U><BR />
<FONT color="#330099">What will the price of Blood sampling be?</FONT><BR>
<U>(70 - 90) / 70 = -0.285 x 173 = -49 + 690 = 641 iKr</U><BR />
<FONT color="#330099">What will the price of Dressing be?</FONT><BR>
<U>(70 - 60) / 70 = 0.142 x 173 = 25 + 690 = 715 iKr</U>
</TD>
</TR>
</TABLE>
Pricing - services