'on time' and 'in time'

Please, explain the usage of these expressions

Hi Irchuk

According to ‘Practical English Usage’ - M. Swan

on time - at the planned time, neither late nor early
in time - with enough time to spare, before the last moment

Hope it helps…

Thank you)