Show HN: Covid-19 Stimulus Rebate Calculator
covidrebate.com1 pointsby weswilson0 comments
ConcurrentDictionary<string, double> taxMap = new ConcurrentDictionary<string, double>();
await Task.WhenAll(migrantList
.SelectMany(m => m.StatesTraversed)
.Distinct()
.Select(async s => taxMap.TryAdd(s, await GetSalesAndUseTaxForStateAsync(s))));
migrantList.ForEach(mti => Console.WriteLine($"Total Relocation Fee: {mti.StatesTraversed.Sum(s => taxMap[s]) + mti.TotalMilesTravelled * .15}"));
This gets pretty close to negligible overhead. The above ran in 0.519s, including the .5s await time of the "API" call.
I'm no economist, but wouldn't shifting transactions from their currency to another (USD/stablecoin) inherently destabilize their economy even more?