added a blank line between datatime creation and factor conversion for readability