I've decided to share my DIY calculator that I've been using for a while now that I believe it has progressed far enough to share with others. It isn't as straight forward yet as I would like it to be, but it's getting there. So I figured I would take some time to go over the features and way that the program works:
This is what you will see when you first run the program. If you are going to type in a recipe, I recommend you first set the amount of ingredients (do NOT include VG, PG, Nicotine in your ingredient amount) and then type them in. As far as branding goes, there is currently no spot for them and I recommend you store a recipe like so: Vanilla Custard (CAP) under the ingredient column. Once you are done entering the ingredients and percentages, click calculate and it will add 3 rows for VG - Nicotine, VG 0%, and PG 0%.
If you are returning to this after the first time or you are happy with your first recipe you can go to the File option and choose from a New/Open/Save/Print option as seen below:
By default, the program will open and save text files in the same folder that the program is run in like this.
Now a look at an opened file and an explanation of the features. By default, the program will calculate all recipes in mL. You can adjust your base nicotine (source) and desired nicotine (target) on the fly with spinners with a max base nicotine of 100 and a max desired of 24. You can also adjust the desired PG (recipe defaults to 80 VG/20 PG) the same way. One thing to note is that all ingredients are included in the PG percentage at the moment, so if you want a pure VG recipe, you will need to lower the PG spinner until the PG row turns red.
There are currently two methods of weight calculation (bottle weight to be included at a later time): total grams and zero'd ingredient. To get the total grams, just simply tick the calculate in grams button and you will get a progressive weight like seen in this screenshot. To zero out the weight, check both the calculate in grams and the zero individual ingredients check boxes and you will be able to zero out your scale after each ingredient you have added to your bottle (for comparison).
Notes:
- There are bugs and planned additions, either closing the recipe and reopening it or hitting the calculate button will fix a lot of them.
- I've only tested this in OS X, but it SHOULD work in Windows and Linux
Current Weight Calculations:
- I've used Botboy141's Guide to Mixing By Weight for a loose version of calculations. Nicotine weight is calculated on the fly. All ingredients are calculated at 1.038g (the weight of PG). 0% VG is calculated at a weight of 1.26g.
If anyone is curious about the exact way the nicotine is measured it is calculated as follows (jSpinnerBaseNicotine.getModel().getValue() is equal to the Base Nicotine in the GUI):
double tempNicotine = (Integer) jSpinnerBaseNicotine.getModel().getValue() / 10.0;
double tempVG = 100 - tempNicotine;
tempNicotine = tempNicotine * 1.01;
tempVG = tempVG * 1.26;
nicotineWeight = (tempNicotine + tempVG) / 100;
Download Link: v0.1
Let me know if you have any questions on how to set this up or get it working and of course if you run into problems, let me know and I'll try and fix them.
This is awesome bro! Love how the nic has a cap to it to not get anyone in trouble if they make an error. Great work!
I tried to gear it toward what I thought most people would use. Also, I'd like to thank you for a good percentage of the recipe I posted in the pictures above. You might recognize most of that base (with a butterscotch instead of brown sugar) from your Boardwalk recipe!