You have the month and day arguments backwards
You could change it to
but then, since Date.parse() is available, I don't see the point in writing your own function to do the same thing.
dates = date.split('/');
return Date.UTC(dates, dates, dates, 0, 0, 0, 0);
Also, if you decide to use the code I posted, you should change
var newDate = new Date();
Today I realized that the Date constructor could take an argument in milliseconds.
var newDate = new Date(total);