The original sentence is in the active voice ("We have completed our task before sunset"). To convert it to the passive voice, the object "our task" becomes the subject of the sentence. Additionally, the auxiliary verb changes to reflect the passive construction. The correct passive form is: "Our task had been completed before sunset." The use of "had been" reflects the past perfect tense, which matches the timing in the original sentence.