You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When entering in a dividend, the "shares" field is calculated automatically, based on how many shares you owned on that date. However it only uses the dates and not the times for this calculation, so it comes up with the wrong number of shares if you bought more shares after the dividend was issued, but on the same day.
To Reproduce
Steps to reproduce the behavior:
Buy 100 shares on 2024-01-01 10:00
Buy 200 shares on 2024-01-02 11:00
Enter a dividend for the share, with the date as 2024-01-02 00:00
At this point you only owned 100 shares, but the field is pre-filled with 300 shares.
Expected behavior
The time should be considered as well as the date, so that only shares you owned at the current date and time are included. Or at the very least the calculation should not include shares bought on the same day as the dividend as these are probably not usually counted (at least not on the exchange I'm using).
Desktop
OS: Linux
Version 0.71.2
The text was updated successfully, but these errors were encountered:
Describe the bug
When entering in a dividend, the "shares" field is calculated automatically, based on how many shares you owned on that date. However it only uses the dates and not the times for this calculation, so it comes up with the wrong number of shares if you bought more shares after the dividend was issued, but on the same day.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The time should be considered as well as the date, so that only shares you owned at the current date and time are included. Or at the very least the calculation should not include shares bought on the same day as the dividend as these are probably not usually counted (at least not on the exchange I'm using).
Desktop
The text was updated successfully, but these errors were encountered: