Added support for time (not just days).
Added check for when only one column is used.
Put in a check for trying to log values less than or equal to zero.
Added check for if all returns are zero.
Shortened example.