Downgrading within a yearly subscription

Downgrading within a yearly subscription

How do you treat billing if someone downgrades from a paid plan to a free plan before the annual time has elapsed?
Thank you.