The gap to the last spot for Champions League is 13 points, 12 points for the Europa League, or mathematically it is about 4-5 matches win.
With the fact that there are still 17 matches to go, mathematically Juventus is still having the chance to catch the position but ofc it is hard.
What Juventus need to do now is to try to win all the remaining 17 matches and hoping for the other team above their current position losing many points.
It is not impossible to happen but really hard to happen unless there will be miracles for them.

But in real matches, the math can be wrong

Juventus have the opportunity to get ticket to UEL even though they failed to reach 4th place in the final standings this season. they must win the Coppa Italia. However, they should be able to beat Inter Milan in the Semi-Finals. This is the best chance for Juventus to go to UEL, if they fail in this match, it will be even more difficult for them to play at UEL next season because it wil depend on their final standing positions.
In the match between Juventus and Inter Milan in the semifinals of the Coppa Italia it might give a UEL ticket for Juventus when it is able to win both matches which will be titled next April, but Inter Milan I don't think is an easy opponent, what I see are these two teams have the same performance , maybe Juventus will need a more optimal performance to beat Inter Milan and get a UEL ticket, this is a good opportunity for Juventus if you want to win a UEL ticket.
Maybe to advance to the Champions League and have the opportunity to play 17 times and have to win in every meeting will be a little difficult to predict, this will be a long struggle for Juventus if you want to advance to the Champions. and we know that some of the teams above it are still running in consistent line of performance.