I gotta go eat dinner, but I have calculations verifying as a ruby class with each period and concept. Here’s a dump of data that shows it. It’s really hard to show this way, more tomorrow when we’re in the office, but major progress!
j.periods # Show the periods that are defined in the `facts` json column used by this role
=> {"9d7fc963515289af9d036110666da3a05f965b9f"=>{"months"=>12, "end_date"=>Sat, 30 Sep 2017, "start_date"=>Sun, 25 Sep 2016, "fiscal_year"=>"2017", "fiscal_period"=>"FY"},
"6bfcb1582b287c9a1a4b06c9e663b5ef32d4caff"=>{"months"=>12, "end_date"=>Sat, 24 Sep 2016, "start_date"=>Sun, 27 Sep 2015, "fiscal_year"=>nil, "fiscal_period"=>nil},
"e8c1b42bd81892ebbb9ad903f69ffbd1d683e209"=>{"months"=>12, "end_date"=>Sat, 26 Sep 2015, "start_date"=>Sun, 28 Sep 2014, "fiscal_year"=>nil, "fiscal_period"=>nil}}
# There are three periods. For ease of use, I assigned them a, b, and c to each id
# so a is "9d7fc9735...", b is "6bfcb15..", c is "e8c1b42..."