Solution with strtotime and some elementary school math.
$am = intdiv(43200 - strtotime('2021-03-30 10:00:00')%86400,60);
$pm = intdiv(strtotime('2021-03-30 13:30:00')%86400 - 43200,60);
strtotime provides the seconds since 01/01/1970. With seconds%86400 we get the seconds from midnight. 86400 are the seconds of a whole day. 43200 is the seconds of half a day or 12:00. The differences 43200 - secondsStart and secondsEnd - 43200 give us the seconds for AM and PM. We only have to divide this by 60 to get the minutes.
The following variant with the DateTime extension dt is easier to understand.
Given:
$start_date = '2021-03-30 10:00:00';
$end_date = '2021-03-30 13:30:00';
Calculation:
$day12h = dt::create($start_date)->setTime('12:00');
$am = dt::create($start_date)->diffTotal($day12h,'Minutes');
$pm = $day12h->diffTotal($end_date,'Minutes');