# .css-1p792ld{margin-top:unset;}.css-1p792ld:hover > span{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none;-webkit-transform-duration:0.1s;-ms-transform-duration:0.1s;transform-duration:0.1s;}Account Performance Calculation.css-14vda7h{font-size:15px;margin-inline-start:0.5rem;opacity:0;position:absolute;-webkit-transform:translateX(-4px);-ms-transform:translateX(-4px);transform:translateX(-4px);-webkit-transition:opacity 0.2s ease-out 0s,-webkit-transform 0.2s ease-out 0s;-webkit-transition:opacity 0.2s ease-out 0s,transform 0.2s ease-out 0s;transition:opacity 0.2s ease-out 0s,transform 0.2s ease-out 0s;}

In BFS Account Performance is calculated on a daily basis. For each day in a period the relative change of value of an account or a group of accounts is calculated in the following manner:

1. The closing value of the account of the previous day is recorded (Y = Yesterday's value).

2. All transactions of the current day that don't have at ReturnCalculationType of "Transfer" are summed (R = Realized result)

3. All transactions with ReturnCalculationType of "Transfer" are summed (T = Transfers)

4. The closing value of the current day is recorded (C) and yesterdays value (Y) is subtracted (U = Unrealized result)

5. The total of R+U is divided by Y to get the relative change of the current day (D)

6. C is added to T to go into the next day's calculation as Y

Then for the days in the period 1, 2, 3, ... , n the total  change is calculated as (1 + C1) * (1 + C2) * (1 + C3) * ... * (1 + Cn) - 1.

Example:

Avkastningsberäkning.xlsx