Example of the formula for calculation of Currency translation code G

The following table shows what the translated amount (LE) for 0307AC will be for different scenarios in the register of historical rates. The Period average rate (D) for 0307AC is 6.0.
Table 1. Example of the formula for calculation of Currency translation code G
0306AC 0307AC
LC LE LC LE
10 40 15 ?
Table 2. Values
Entered in the register of historical rates 0307AC Remark
LC LE LC LE  
0 0 15 70 Calculated as: 40 + (5 * 6.0). This is a D rate currency translation.
6 24 15 78 Calculated as: 24 + ((15 - 6) * 6.0)
15 60 15 60 Calculated as: 60 + ((15 - 15) * 6.0)
18 72 15 54 Calculated as: 72 + ((15 - 18) * 6.0)