The tip is calculated on the bill you enter. If tax should be excluded, subtract it before you start. The split is even. For an uneven split, calculate one share and adjust the people count only for the portion you are dividing.
A 20% tip on $64 is $12.80. Two people pay $38.40 each, which is half of $76.80, not half of the bill plus a second tip.