Note: This story has been updated to reflect S&P Global estimate of $6 billion as the cost of the shutdown.

President Donald Trump has signed legislation to end the partial government shutdown. But its impact was severe and costly.

The economic cost was measured at $6 billion, according to Friday estimates by S&P Global Ratings. That's $300 million more than Trump's demand for $5.7 billion to build the southern border wall.

The measure, signed late Friday, temporarily reopens the government until Feb. 15 to allow lawmakers time to continue discussions on southern border security. But the cost of the shutdown remains.

While other presidencies have had shutdowns, this impasse was both the longest and most expensive. Though costs have not been calculated for all shutdowns, a few have been analyzed for dollar losses.

Even a partial shutdown does not mean taxpayer dollars won't be due at some point. Examples of how shutdown costs are incurred, how revenue is lost and how business can be affected:

The 21-day shutdown during Bill Clinton's presidency was the longest in U.S. history until the latest closure. Here's how shutdowns since the Ford administration compare:

SOURCES S&P Global Rating; Politifact; Congressional Research Service; USA TODAY research