The general method for calculating interest (on an interest only loan) is as Aaron said, figure out the daily interest and apply it over the number of days it's applicable.
It's not quite accurate, because interest is generally paid monthly, but calculated daily, so when it's calculated...