Yeah, the 40 relies on traditional authorship. It's really far more, but over significantly less time. Probably closer to 800 years, with the incorporation of some older poetic fragments.
And most likely only on two continents, unless some of the New Testament was written in Egypt