There is lots of information about Joseph in Genesis chapters 40-41. For instance we know
# He was 17 when he was sold into Egypt
# He was 30 when he was made overseer
# He was 39 when his brothers first came to Egypt (second year of the famine, or nine years after being made overseer)
# He was probably 41 or so when the brothers came a second time and Jacob comes to Egypt
# He was 110 when he died
How long Was Joseph in Potiphars house? How long in prison?
In Genesis 41:46 we learn that Joseph was 30 when he was made overseer to the king of Egypt. Since he was 17 when he was sold into Egypt, that means he spent 13 years total in Potiphars house and in prison. So he lived in Potiphar’s house 11 years or less and was in prison 2 or more years. We know Joseph was in prison at least 2 years because chapter 40 tells us about the servants of the king whose dreams Joseph interpreted. The first verse of chapter 41 tells us that 2 years passed after that event before the king had his dreams that Joseph was called to interpret.