Copy the formula and paste on your sheet2 Cell D2 & D8
=SUMIFS(Sheet1!$E$2:$E$65,Sheet1!$B$2:$B$65,">="&$B2,Sheet1!$B$2:$B$65,"<="&$C2)
Paste this to D3 & D9
=SUMIFS(Sheet1!$F$2:$F$65,Sheet1!$B$2:$B$65,">="&$B3,Sheet1!$B$2:$B$65,"<="&$C3)
Kindly use the table on data if you have large dataset and updating frequently, Assuming there is a unique loan number, a pivot table is best suited for such cases.
You can group the dates as quarters, and apply to the pivot table.