Factor out addition of css class name to negative times