From 742b9fa46d74762f58ae939afd980a532cc4636f Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 6 Oct 2020 14:13:14 +0300 Subject: Account for days elapsed based on latest date Instead of counting the number of days for the averge through the number of iterations, let it be the difference between the latest date on entry and the start of the period. Id est: * 'Missing' dates from the input are implicit. * The order of the days doesn't affect the output (although it doesn't make sense to put the days out of order). --- budget/tests/test.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'budget/tests/test.toml') diff --git a/budget/tests/test.toml b/budget/tests/test.toml index 1bb1ce7..a29467e 100644 --- a/budget/tests/test.toml +++ b/budget/tests/test.toml @@ -38,6 +38,9 @@ date = 2020-10-01 category = "products" shared = 2 +[[days]] +date = 2020-10-04 + [[days]] date = 2020-10-02 @@ -52,6 +55,3 @@ date = 2020-10-02 price = 6.9 category = "transport" -[[days]] -date = 2020-10-03 - -- cgit v1.2.3