Dynamic row sum calculation in add page?

Can anyone help to get dynamic row calculation for add page
table rows have quanity and rate but that time sum not working when add page

Also tried with this

where made mistake in this code.
kindly help and advance thanks to team

you can try in this way
$(document).ready(function() {
$(‘#ctrl-rate-row1,#ctrl-quantity-row1’).on(‘keyup’, function(){
$(‘#ctrl-total-row1’).val(($(‘#ctrl-quantity-row1’).val() * $(‘#ctrl-rate-row1’).val()));
}); });

In none of the cases does the radsystem 8.5.9 code run, would it be possible if you could help us?