calculating density based on total remaining budget