How long does a person remain contagious with the flu?

How long can you be contagious if you have the flu or cold?

The weather is changing, in such a situation it is common to have flu or…