simplify and make tx split calc more readable