Is it time for a new car battery (winter months)?

I have a honda civic 2010
had it for 2 years (so the battery is atleast 2 years old.)

the tempatures in my area range from
45F - 75F

my car is parked in the basement level of a parking garage.

my car battery dies if i don't use it after 24 hours

so is it time for a new battery given my conditions?

note: when i went home for turkey break, my car was parked outside. Dint move it for a few days. Car turned on just fine anyway.

A battery should last five years at least. Why do you think it started fine after a few days on turkey break? I would guess your battery is fine but you should make sure you do not have a power draw when the care is not being driven.