An easy way is to create a function and then call it:
keyupfunction() called when the page loads for the first time and when the keyup event is triggered ... this is the purpose of using a function in a programming language.
$(document).ready(function() {
keyupfunction();
$("td, input").keyup(keyupfunction);
});
common function
function keyupfunction(){
var col_1revenue = $(".Col1Receipts, .Col1Receipts input").sum();
}