Could someone explain the logic behind this formula? Pretty much how it works. Thanks

=SUMPRODUCT(--($C$2:$C$22=1),--($E$2:$E$22>=$D$2:$D$22))