How do you calculate current ratio and quick ratio?

by getting the difference between current assets and stock and then dividing the difference by current liabilities.