Constraining duty cycles through a Bayesian technique