Calculate solvent residues in NMR spectrum, knockoutjs version