It is done so that the reward of it is donated to all people whom you have harmed and sinned
against, so that Allah will use the reward to satisfy their claims on the Day of Resurrection if
He so Wills.
It should be done on the last Friday of Ramadhan and the day of Eid Fitr.