for Libor swaps, the accrual for the floating leg is easy as the cashflow is known already at accrual start day. The calculation would be similar to how the accrual of a bond is calculated.
How about the accrual of the floating leg of an OIS swap please? The cashflow is unknown until accrual end date.