Rules To Calculate Log