Change to an input field in a JavaScript Datatable autochange the value of another field in the datatable?

I am working on a DOT Net MVC project. My Razor code has a datatable with input field Points and 2 other fields DaysAssigned and DaysRemaining. The value of DaysRemaining field changes according to this formula :
DaysRemaining = DaysAssigned – (Points /10)
My code is working for only the 1st row of the datatable. Changes to the Points field in any row of the datatable updates DaysRemaining field in the 1st row only.

Here is my code :

$('.Points').on("keyup", function() {
        var points = $(this).val().trim();  //get the value entered          
        var daysassign = $("#DaysAssigned").val().trim();                     
        let total = daysassign - (points / 10);
        $("#DaysRemaining").val(total);       
    });

I am new to javascript. Will appreciate any help while I keep working on this issue.
Thanks,

I have tried to find the Row index of Points field in the datatable and to update the corresponding DaysRemaining field but have been unsuccessful. Maybe there is another solution out there I am not aware of.