time since sell calculations working, had to set tm_isdst flag in struct