Need help to generate the cron expression based on user inputs

Need help for C# code to create a cron expression based on user inputs. User inputs are the day of month, frequency and number of executions similar likehttp://www.cronmaker.com/