Fix formatting (mix of spaces & tabs to all tabs)
Fix edge case in calculating row for given date