Simple math utilities