Added SEC type and fixed incorrect day splitting