Midrash for Zevachim 237:2
ובשלמה כתיב (דברי הימים ב ג, ב) ויחל לבנותו בשנת ארבע למלכותו נשתיירו לשילה שלש מאות ושבעים חסר אחת:
in the fourth year of his reign.<span class="x" onmousemove="('comment',' II Chron. III, 2. The period of Nob and Gibeon is calculated from the time that the Ark was taken to Kiriath-jearim until Solomon began building the Temple. Thus we have 20 and 33 (which he reigned in Jerusalem) and 4 =57.');"><sup>2</sup></span> Thus three hundred and seventy less one was left for Shiloh.<span class="x" onmousemove="('comment',' The Temple was consecrated four hundred and eighty years after the Exodus. The figure three hundred and sixty-nine is arrived at by deducting the forty years in the wilderness, the fourteen at Gilgal, and the fifty-seven of Nob and Gibeon.');"><sup>3</sup></span>