Fixed days since test and cleaned up syntax a bit for 4.0 code climate