Fares
PHPVMSGEN FARES BUILDS
How does PHPVMSGEN deal with fares ? .
EXAMPLE FARE CALCULATION
A worked example based on some selections you make

The input selected was to have an Economy Class fare with a basic cost of 65 and a per-mile cost of 0.15. Also a fares cost of 12.5% of basic fare
For this example we use the following sample flight from Amsterdam to Rome which is around 700 nautical miles.
Fares Calculation
To calculate the Economy fare we multiply the per mile by the nautical miles and add it to the basic fare
So the Economy Class Fare was calculated to be 170 that is 65 + (700*0.15) rounded to nearest 2 decimal places
You could simply apply this fare to the flight if you selected to do so, however it is not recommended to do this as if you wanted to increase prices by 10% in the future you would have to edit all the flights one by one.
PHPVMS has a simple way to overcome this problem by using percentages instead. So rather than store the actual value of the fare you store the percentage compared to the base value of the fare. Going Back to the example calculation we have the Economy Class Base Fare of 65 and the calculated fare of 170. This will give an Economy Class Fare Percentage Value of 261.54% and this will be the value stored with the flight if fares selected for storage.
So we will do the calculations again with a 10% increase in the basic price. We had a basic price of 65. After adding 10% our basic fare is now 71.5. We had a per mile price of 0.15 and after adding 10% our per mile price is now 0.165. So the Economy ClassFare was calculated to be 187 that is 71.5 + (700*0.165) rounded to nearest 2 decimal places. We have the Economy Class Base Fare of 71.5 and the stored percentage 261.54%. This will give an Economy Class Fare of 187 but without having to edit the individual flights.
Final Note about fares is that you can have a cost associated with each fare. PHPVMSGEN works this out at being a value as input or in the case of a percentage input this is calculated as a percentage of the base fares howeverthis is only a rough figure and you may need to adjust this yourself as you may have expenses set up as well.