cfi_flash: precision and underflow problem in tout calculation