Unless your student loan servicer provides you with an amortization schedule showing the monthly breakdown between principal repayment and interest, and I never found a loan servicer who does that, don't even attempt to make a monthly allocation. If you simply split the total student loan interest between the two states, based on the number of payments made while residing in each state, that should provide a satisfactory deduction amount for each state.