diff --git a/modules/account_asset/asset.py b/modules/account_asset/asset.py index 236fb46cd7..0c4fc9b94b 100644 --- a/modules/account_asset/asset.py +++ b/modules/account_asset/asset.py @@ -35,7 +35,10 @@ def normalized_delta(start, end): delta = end - start correction = 0 if start.year == end.year: - if calendar.isleap(start.year) and start.month <= 2 and end.month > 2: + if (calendar.isleap(start.year) + and (start.month < 2 + or (start.month == 2 and start.day < 29)) + and end.month > 2): correction -= 1 else: if calendar.isleap(start.year) and start.month <= February: