Fixed some things and added a server-side function to calculate the total expected cash in limbo