Since the earth is slowing its rotation, and as far as I know, each day is 1 second longer every about 1.5 years, how long was an earth day near the formation of earth (4.5 billion years ago)?
I wouldn't assume to just do 4.5b/1.5 and subtract, because you would think the rate of change is changing itself, as seen here from wikimedia. It is a graphical representation of data from INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE. They decide when its time for a leap second (the last one being on Jun 30, 2012) The data can be found here.