The Thermodynamic Cost of Erasing Information in Finite-time