Pricing Parisian and Parasian options analytically