Well, ask a too general question, and you get too general answers, all of which are right under some circumstances.
If you have a lead battery, Charge at every opportunity, and keep it fully charged as much as possible. Even if work is only 2 miles away. Lead MUST be kept full at all times.
If you have lithium, and work is 2 miles away, charge at home. Ideally, charge in the am so the battery does not sit fully charged all night. If it works out better, you could charge only at work, starting the charge at noon or whatever.
If you have lithium, and work is 5 miles away or more and your battery is 10 ah size, charge at work and at home. Again, ideally not until you actually need it full.
But in the end, really, you have to use this thing in the real world. When I did a long daily commute, I needed to charge at work to make it back home. And back home, charging took till past my bedtime. That battery was kept on the charger 22 out of 24 hours a day for five days each week. Then it would get charged some on the weekend, for fun riding. That lifepo4 battery still lasted 3.5 years.
So do what make it livable for you. Sure, the battery is expensive, but your free time is worth a lot more than a few bucks.