With the first phrase you would be more likely to hear 'when you have finished (doing something) could you..............' - eg: 'when you have finished cleaning, could you help me prepare dinner'.
The second phrase needs an endispiece to put it into context: You could imagine using it ......eg:.... 'When you finished in the garden yesterday, you didn't put the gardening tools back in the shed'.