I don’t really have a ghostwriting template.
When it comes to cost, what you should do is have an in-depth discussion of exactly the needs and wants of the client, exactly what they want as the finished product, then calculate how long it will take you. Writing, any research or interviewing you need to do, polishing, etc. Then multiply that by how much you want to get paid per hour, remembering that most times projects will take a bit longer than you estimated.
Then make sure that if it is a book, know that ghostwriting costs do NOT generally cover full final edits.