Mathematics (for the fraction calculation)