Advanced Example: tax computation