Logarithm rules and calculations