Calculating total no of Years and Days in given minutes


 import java.util.*;
public class YearsAndDays{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
System.out.println("Enter total minutes");
int min = sc.nextInt();

long year = (long)(min/(60*24*365));
int days = (int)(min/60/24)%365;
System.out.println("Total years in "+min+" minutes"+"
                                are "+year+" and total days are "+days);
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...