Period

Why does my period go from 5 to 6 days some months 5 and some months it's 6 I noticed when my cycle last 26 days my period is 26 and when my cycle last 27 days my period last 6 days?