How Does UE Decide on K0/K2 Index?

Check this → 5G NR UL-DL Time Domain Resource Allocation with the help of Downlink DCI (k0, k1 & k2) and Layer-3 messages (RRC)