Keep battery at 50-60% state of charge when not riding for long periods of time. I leave my bikes at 50-60% really any time i know im not riding it for longer than a day.
Charging immediately after riding isn't something to worry about too much. Charging does warm up the battery, though, and...