If your afternoon coffee is leaving you wired at bedtime, try swapping one cup...
https://front-wiki.win/index.php/Should_I_drink_water_before_my_first_coffee_or_tea%3F
If your afternoon coffee is leaving you wired at bedtime, try swapping one cup for rooibos or a gentle matcha