Each day for a year
Compare the two:
Exodus 20:11 "For in six days the LORD made heaven and earth, the sea, and all that in them is, and rested the seventh day: wherefore the LORD blessed the sabbath day, and hallowed it."
Exodus 23:10-11 "And six years thou shalt sow thy land, and shalt gather in the fruits thereof: 11 But the seventh year thou shalt let it rest and lie still; that the poor of thy people may eat: and what they leave the beasts of the field shall eat. In like manner thou shalt deal with thy vineyard, and with thy oliveyard."
This is one of the places where God equates a day to a year. Consider another passage:
Genesis 29:20-28 "And Jacob served seven years for Rachel; and they seemed unto him but a few days, for the love he had to her... And Laban said, It must not be so done in our country, to give the younger before the firstborn. 27 Fulfil her week, and we will give thee this also for the service which thou shalt serve with me yet seven other years. 28 And Jacob did so, and fulfilled her week: and he gave him Rachel his daughter to wife also.""
Genesis 31:41 "Thus have I been twenty years in thy house; I served thee fourteen years for thy two daughters, and six years for thy cattle: and thou hast changed my wages ten times."
Note: A week is 7 days → a day for a year.
These passages are examples where the LORD equates a day to a year. BTW, why was Jesus in the wilderness 40 days and 40 nights?
Numbers 13:25 "And they returned from searching of the land after forty days."
The context of this verse was about the spies that Moses had sent to spy on the land of Canaan. They returned from their missions after forty days.
Numbers 14:34 "After the number of the days in which ye searched the land, even forty days, each day for a year, shall ye bear your iniquities, even forty years, and ye shall know my breach of promise."
Out of the 12 spies, only two spies (Caleb and Joshua) had faith. The remaining 10 did not have faith that the children of Israel could enter and possess the promised land. As a punishment for their sins, God made the children of Israel wander in the wilderness for 40 years, each day for a year, before they can enter into the promised land to make an end of their sins.
Deuteronomy 9:9 "When I was gone up into the mount to receive the tables of stone, even the tables of the covenant which the LORD made with you, then I abode in the mount forty days and forty nights, I neither did eat bread nor drink water:"
Moses too, when he had gone up into the mount to receive the tables of stone, he did not eat bread nor drink water for 40 days and 40 nights. It was a reminder of the transgressions of the children of Israel, how they had provoked the LORD to wrath because of unbelief (verse 7).
Matthew 4:1-2 "Then was Jesus led up of the Spirit into the wilderness to be tempted of the devil. And when he had fasted forty days and forty nights, he was afterward an hungred."
Jesus did what Moses had done when he was led of he Spirit into the wilderness to be tempted of the devil. He did not eat bread nor drink water for 40 days and 40 nights. Why did Jesus do that? It was for the same reason why the children of Israel was made to wander in the wilderness for 40 years when they were tempted by what they saw with their eyes and sinned against God out of unbelief, calling God a liar by their deeds. 40 years, each day for a year, was the time that God had made them wander in the wilderness for them to make an end of their iniquities. Likewise, Jesus fasted 40 days and 40 nights to finish the transgression, and to make an end of sins, and to make reconciliation for iniquity.
Daniel 9:24 "Seventy weeks are determined upon thy people and upon thy holy city, to finish the transgression, and to make an end of sins, and to make reconciliation for iniquity, and to bring in everlasting righteousness, and to seal up the vision and prophecy, and to anoint the most Holy."
The context of this passage was about the children of Israel after they were carried away into Babylon. In Daniel 9:24, 70 weeks was the time that God had determined for the children of Israel to finish their transgression, and to make an end of their sins, and to make reconciliation for their iniquities. In this was also a prophecy of the Messiah (Jesus Christ) who shall come to bring in everlasting righteousness. According to 2 Chronicles 36:21-23; Jeremiah 25:11-12, 29:10; and Daniel 9:2, the 70 weeks is 70 years. In this case, God has used a week to represent a year, but the idea is the same as the time of Moses where God has used a day for a year (r. Numbers 14:34) for the children of Israel to bear their iniquities.