Last day of period

Sh

When do I put on my app my last day of my period? Is it the day I stop bleeding so say I’ve been bleeding in the morning but by afternoon it’s stopped or do I put the day after so a full period free day? This all confuses me