In L7 copied down and across, formatted as General afterward:

=SUMIF($B$6:$I$6, ">="&L$5, $B7:$I7) - SUMIF($B$6:$I$6, ">"&L$6, $B7:$I7)