Java Swing Application for Calculating Gas concentrations