Unitarity triangle from CP invariant quantities