A modified formula for frequency-magnitude distribution