A method performed by a first terminal in a wireless communication system, the method comprising: transmitting, to a second terminal on a physical sidelink broadcast channel, PSBCH, slot format information for a sidelink communication, the slot format information including first information on a number of one or more patterns, second information on a period of the one or more patterns, and third information on a number of uplink slots of the one or more patterns; and performing, with the second terminal, the sidelink communication in at least one sidelink resource identified based on the first information, the second information, and the third information, wherein, in case that the first information indicates the number of the one or more patterns as 1, the second information indicates the period of the one or more patterns for a first pattern, and the third information indicates the number of uplink slots for the first pattern, a value of the third information is identified based on a number of uplink slots of the first pattern and at least one of a subcarrier spacing parameter, and wherein, in case that the first information indicates the number of the one or more patterns as 2, the second information indicates the period of the one or more patterns for the first pattern and a second pattern, and the third information indicates the number of uplink slots for the first pattern and the second pattern, a value of the third information is associated with the number of uplink slots of the first pattern, a number of uplink slots of the second pattern, a number of total slots of the first pattern, and the at least one of the subcarrier spacing parameter. transmitting, to a second terminal on a physical sidelink broadcast channel, PSBCH, slot format information for a sidelink communication, the slot format information including first information on a number of one or more patterns, second information on a period of the one or more patterns, and third information on a number of uplink slots of the one or more patterns; and performing, with the second terminal, the sidelink communication in at least one sidelink resource identified based on the first information, the second information, and the third information, wherein, in case that the first information indicates the number of the one or more patterns as 1, the second information indicates the period of the one or more patterns for a first pattern, and the third information indicates the number of uplink slots for the first pattern, a value of the third information is identified based on a number of uplink slots of the first pattern and at least one of a subcarrier spacing parameter, and wherein, in case that the first information indicates the number of the one or more patterns as 2, the second information indicates the period of the one or more patterns for the first pattern and a second pattern, and the third information indicates the number of uplink slots for the first pattern and the second pattern, a value of the third information is associated with the number of uplink slots of the first pattern, a number of uplink slots of the second pattern, a number of total slots of the first pattern, and the at least one of the subcarrier spacing parameter. <EOS>