Can a wife help her husband in mastarbution till the time of the ejaculation.
Is it allowed?

Yes if she is agreed that man can ejaculate outside but man should not be involved himself in masturbation.