This is extrapolated from a literal reading of the Bible, based on assumptions about date and ages of patriarchs and all those "begats".
Bishop Usher was the first to come up with a comprehensive scheme, but this concept is an assumption for most fundamentalist Christians.