Calculate paper weight or quantity based on size, GSM, and quantity/weight. Includes smart input parsing.