Retirement tax questions

@ DanaB27   Regarding your statement, "You also will have to pay the 6% penalty on your 2022 return:", I will have the pay 6% penalty on $14K for 2 years even though my contribution for 2021 was made in Dec 2021? Also, for 2022 return do I use only $14K or the $14K plus any gains/losses?