fix little typo in calculation.md#167
Conversation
|
@mierin12 However, I don't understand why the formula should be: 400 × (1/1.6263 - 1/1.5693) = -8.9336 ≈ -8.93 EUR. The exchange rate on 31/12/2022 was 0.6372 AUD/EUR, meaning 1 AUD = 0.6372 EUR. In any case, I believe your formula is more accurate. If you’d like to update the text, that’s perfectly fine with me. However, could you also update the screenshots from the dark theme to the light theme? If you’d like to have the demo file I used in the example, just let me know — I’d be happy to send it to you. Ideally, it should also be included in the project’s assets with a reference to it in the documentation. I also noticed a change in the settings menu (the gear icon): in addition to the FIFO method, the moving average method is now available as well. Let me know what you think and whether you need anything from me. |
|
Hello @hug-sch , why it is the case, I am not sure. I think PP data source for exchange rate is the indirect quotation (1 EUR = XXX) of the European Central Bank. Which was 1 EUR = 1.5693 AUD on Jan 1st 2023. 1/1.5693 = 0.637226789 , so the difference is just if the exchange rate is rounded at the fourth decimal 0.6372 or not. Those pictures were for illustration here, I am not sure they would add a lot in the manual ? At least maybe not on the calculation page, but on a detailed "exchange rate" topic page ? *
|
|
Hi @mierin12, Yes, I agree. The indirect quotation from the ECB is probably the reason. Your suggestion about referring to Finally, a detailled "exchange rate" topic page is certainly needed in the docs (beautiful example in the current evolutions USD/EUR). The current currencies page needs also some attention. Would you be willing to make a first proposal? |
link to cost methodology page, use indirect exchange rate in calculation
|
Hello @hug-sch , sorry for the delay, I have added a bit more info. OK to create an example page illustrating the USD gain vs EUR gain. But a bit latter in the week. Maybe not a new page but a complement to https://help.portfolio-performance.info/en/reference/view/general-data/currencies/ ? |
|
No need to hurry about the example page. About the frontmatter: besides the title, additional info is provided, e.g. the author of the changes, description, ... See below for an example (from the about.md page). It's not obligatory! What do think? Adding the metadata?
|
|
Sorry about the font size. Don't know how this has happened. :-( |
|
Not super thrilled by this metadata subject, is it really applied ? In Contributing I see :
but nothing about this frontmatter/metadata. And the CI shows a green tick.. |
|
No problem. I've just mentioned it, so, that you know. The pull request is merged. |
Hello,
This is a proposition of small typo fix in the Calculation.md file.
In the commit, I only modify some small things, but I think one more complex modification could take place but I wanted your view on how to modify/present :
One of the modification is to go from
100 x (0.6372 - 0.6149) = 8.93 EURto400 x (0.6149 - 0.6372) = -8.92 EURWe notice there is 0.01 EUR difference with the result from PP. -8.92 instead of -8.93 of Figure 1. This is because the real calculation from PP is not
400 x (0.6149 - 0.6372) = -8.92 EURbut
400 x (1/1.6263- 1/1.5693) = - 8.9336 = -8.93 EURYou can see it more clearly if you exaggerate the value : instead of a 500 AUD deposit on 01/01/2023 followed by a 100 AUD purchase on the same day, lets deposit 10 000 AUD
(10 000 - 100 ) x (0.6149 - 0.6372) = -220.77 EUR(10 000 - 100 ) x (1/1.6263 - 1/1.5693) = -221.107 = -221.11 EURPP says :

But this is true also for the Capital Gain and Currency Capital Gain. Let's exaggerate the purchase from 5 share to 500 shares, so a 500*20=10 000 AUD purchase.
Capital Gain
500 x (15 x 0.6149 - 20 x 0.6372) = -1760.25 EUR500 x (15 x 1/1.6263 - 20 x 1/1.5693) = -1760.572 = -1760.57 EURCurrency weight in the Capital Gain
500 x 20 x (0.6149 - 0.6372) = -223 EUR500 x 20 x (1/1.6263 - 1/1.5693) = -223.3408 = -223.34 EURPP says :

This is even directly clear in the Currency Converter section, with only 100 cash you do not see the difference, but if you exagerate :

