If cost is an issue, you can make your own AFR. As far as I know, it is pure calcium formiate (I know that it can be very cheap, used for fighting ice on the roads, but purity grade may not be good enough if the chemical for that application is sourced). At one time I used to be making and dosing calcium formiate but then I stopped because in addition to calcium and alkalinity it introduces a significant amount of organic carbon into the tank. If dosed in excessive quantity, it may not only deplete the tank of phosphate and nitrate, but bacterial slime may start clogging the pipes on the pumps (I have seen this) and they may require weekly cleaning. Actually, I have started experimented with dosing organic calcium salts long before AFR was there. I tried different organic acids, and then stopped on formic acid because it has least amount of carbon per molecule. My main idea was to dose one single substance which will supplement both calcium and alkalinity and, at the same time, help with the export of excessive phosphate and nitrate. I was shouted at, when I presented the idea on Russian forums, everyone saying this will never work. And then, a few years after I have abandoned the experiments, AFR was offered on the market.
I produced calcium formiate by reacting powdered limestone with formic acid:
You can get a gallon of 90% formic acid for about $60 on ebay, and 10lb of limestone powder is probably around $25. One gallon of formic acid will yield about 5800 grams of calcium formiate for roughly the same price as for 1800g powdered AFR. It is hard to make powder, though, but you can get a concentrated water solution
Calcium formiate solubility in water 160g/liter, so formic acid needs to be diluted accordingly (don't dilute more than this or some of the formic acid may remain unreacted), so that all the resultant Ca(HCOO)2 will stay in solution. Limestone must be added in excess, to minimize the amount of unreacted acid in the solution. The reaction produces significant amount of carbon dioxide and the fumes of formic acid are pretty acrid, so must be carried out outdoors. Mix several times after CO2 forming stops, then wait until the cloudiness goes away and the excess of calcium carbonate precipitates, then carefully pour the calcium formiate solution into storage bottles.
P.S. I have also used calcium oxide (lime) instead of calcium carbonate: this reduces the amount of unreacted formic acid in the resultant solution, but its use results in excessive heat generation during the reaction, and is more dangerous.
100ml of formic acid is diluted with water to yield 1liter, to which is added 100 gram of lime (30% excess). This will result in 160g of concentrated calcium formiate solution (which when dosed to the tank will result in adding of almost 30g of organic carbon).