Form 7203 Stock Block

We have a loss reported on our K-1 Form 1120-S for 2023. Turbo Tax is requiring Form 7203 to be completed. How do we answer the Stock Block line (Item C)? Is the basis calculated using end of year 2022 valuations or the valuations at the time of stock acquisition? How could this potentially affect our tax liability?