Though the question is addressed to XRay ,I take the liberty to reply as I book capital gains in mutual fund units every year.
Every monthly investment is considered as separate investment and when it is redeemed,the holding period for each instalment considered separately for calculating short term/ long term capital gains.The capital gains calculation is done by the Mutual Fund and investors can download the capital gains statement.
But this statement comes after we redeem the units,but before redumption we have to monitor the holding period ourselves manually.
Smart_trade