Purification calculator