The sentences are correct but it would be more common to hear them without a duration of and a period of since minutes and hours are clearly periods of time If duration and period are used the article a is necessary A and an are indefinite adjectives notionally they mean one The cake was baked in...