State tax filing

How do I document the days worked from home (RI)?  Is a hand written log or a spreadsheet that tracks those days sufficient?  Then would I just do the math to identify a proportion of my salary/bonus to assign to those days?  I'd presumably need to do similar math for SS and medicare deductions with MA cares about.